package com.clc.cc.registry.api;

import com.clc.cc.common.Node;
import com.clc.cc.common.URL;


/**
 * ClassName: Registry
 * Description:Registry
 *
 * @author chengluchao
 * @date: 2024/5/31 14:35
 * @since cc1
 */
public interface Registry extends Node, RegistryService {
    default int getDelay() {
//        return getUrl().getParameter(REGISTRY_DELAY_NOTIFICATION_KEY, DEFAULT_DELAY_NOTIFICATION_TIME);
        return 0;
    }

    default boolean isServiceDiscovery() {
        return false;
    }

    default void reExportRegister(URL url) {
        register(url);
    }

    default void reExportUnregister(URL url) {
        unRegister(url);
    }
}
